#!/usr/bin/python

import consoleapp

import sys
try:
    import cProfile as cprof
except:
    import profile as cprof
import pstats

cprof.run('consoleapp.main(sys.argv)', '/tmp/profile_data')
p = pstats.Stats('/tmp/profile_data')
p.strip_dirs().sort_stats('cumulative').print_stats(20)
